import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_精英庇佑华服 {
    static id = 'Ajyh';
    static 名称: string = '精英庇佑华服';
    static 描述: string = '大地母亲...咳，圣光在护佑着你~';
    static 图标: string = 'assets\\item\\INV_Shirt_08.blp';
    static buffId: string = 'buff_item_jingyinghuafu';
    static buffType: AppBuffType = {
        id: 'buff_item_jingyinghuafu',
        name: Item_精英庇佑华服.名称,
        ubertip: Item_精英庇佑华服.描述,
        art: Item_精英庇佑华服.图标,
        dur: 5,
        attribute: {
            物理伤害减免: 2,
            法术伤害减免: 2,
        },
        targetAttach: 'origin',
        targetArt: 'Abilities\\Spells\\Human\\DivineShield\\DivineShieldTarget.mdl',
    };
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(来源, Item_精英庇佑华服.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_精英庇佑华服.buffType);
        se.onUnitSpellEffect(Item_精英庇佑华服.spellEffect, Item_精英庇佑华服.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_精英庇佑华服.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
